#ifndef URLINFOITEMWIDGET_H
#define URLINFOITEMWIDGET_H

#include <QWidget>
#include <QString>
#include "global.h"

namespace Ui {
class UrlInfoItemWidget;
}

class UrlInfoItemWidget : public QWidget
{
    Q_OBJECT

public:
    explicit UrlInfoItemWidget(QWidget *parent = nullptr);
    ~UrlInfoItemWidget();

    void setUrlInfo(UrlInfo urlInfo);
    UrlInfo getUrlInfo();

    void setHistoryInfo(UrlInfo urlInfo);



private slots:
    void on_pushButton_clicked();

signals:
    void deleteItem(QString link);

private:
    Ui::UrlInfoItemWidget *ui;
    UrlInfo info;
};

#endif // URLINFOITEMWIDGET_H
